<?php

/** 
* 
* 
* by:南宁火蝶科技有限公司 http:///www.HdsysCms.com
* 声明:本系统禁止用二次开发、侵犯HdsysCms著作和除去HdsysCms进行售卖,如发现将追究一切权利,模版制作属于自己所得可以通过本系统对外开发模版获取收益!
* 
* 2019年第一版本发布 - 到2023.9.1开源使用! 
* php混淆工具:phpencry.wbox.top
* 
* 注意防骗:@HdsysCms 官方没授权任何个人机构合作,唯一收款抬头:《南宁火蝶科技有限公司》和官网显示客服唯一渠道客服,其它渠道以HdsysCms名义行为均骗子!
*
*/
	

defined('HDSYS_SET') or call_my_die("" . 'Not,This File Not Can in Ie Open');
class index
{
public $intelligence_session, $intelligence_db, $intelligence_templates, $Routing;
public function __construct()
{
$this->intelligence_session=bs_lib::load_libhdsys_class("" . 'session');
$this->intelligence_session->intelligence_session_open();
$this->intelligence_db=bs_lib::load_libhdsys_class("" . 'db');
$this->intelligence_templates=bs_lib::load_libhdsys_class("" . 'templates');
bs_lib::load_modules_common();
$_GET=bs_lib::addslashes_array($_GET);
$_POST=bs_lib::addslashes_array($_POST);
}
public function call_contact()
{
$param_title=set_post('title');
$param_type=set_post('type');
$param_name=set_post('name');
$param_contact=set_post('contact');
$param_text=set_post('text');
$param_info1=set_post('info1');
$param_add_time=time();
$param_sql="INSERT INTO `hdsys_contact` (`id`, `add_time`, `title`, `name`, `type`, `contact`, `text`, `remarks`, `info1`, `info2`, `info3`) VALUES (NULL, '{$param_add_time}', '{$param_title}', '{$param_name}', '{$param_type}', '{$param_contact}', '{$param_text}', '', '{$param_info1}', '', '');";
$param_tmp=$this->intelligence_db->intelligence_query($param_sql);
if ($param_tmp) {
$param_json_array=array();
$param_json_array[call_my_str_code()]=1;
$param_json_array[call_my_str_msg()]='留言成功';
print_json($param_json_array);
} else {
$param_json_array=array();
$param_json_array[call_my_str_code()]=-1;
$param_json_array[call_my_str_msg()]='留言失败';
print_json($param_json_array);
}
}
public function call_index()
{
intelligence_spider();
$this->Routing=$this->intelligence_templates->GetTemplatesName();
if (isset($this->Routing['array'])) {
$data=$this->Routing['array'];
$this->Routing['weizhi'];
if ($this->Routing['weizhi']=="" . 'hdsys_content') {
$param_sql="UPDATE `hdsys_content` SET `browse`=`browse` + '1' WHERE `static_url`='{$this->Routing['array']['static_url']}';";
$this->intelligence_db->intelligence_query($param_sql);
}
} else {
$data=array();
}
$param_DIV_MEIN=(int)get_session_value('DIV_MEIN');
$param_file_cache=HDSYS_DIR_SYS . 'cache/templates.' . call_my_md5(getsysurl() . $this->Routing['templates'] . $_SERVER['REQUEST_URI']) . '.php';
if (is_file($param_file_cache) and bs_lib::get_configs_value('personality', 'cache')==0 and $param_DIV_MEIN==0) {
include $param_file_cache;
} else {
$param_t_file=$this->intelligence_templates->Compiler($this->Routing['templates'], $this->Routing['name'], $data);
include $param_t_file;
}
unset($GLOBALS['dataStr']);
unset($GLOBALS[call_my_str_data()]);
unset($GLOBALS['jsonarr']);
}
}
